package com.thoughtworks.davenkin.spring;

import java.io.IOException;
import java.rmi.ServerException;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.http.HttpRequest;
import org.springframework.web.servlet.HttpServletBean;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;


public abstract class HelloController implements Controller
{

	protected final Log logger = LogFactory.getLog(getClass());

	public ModelAndView handleRequest(final HttpRequest request, final HttpServletBean response) throws ServerException,
			IOException
	{

		logger.info("Returning hello view");

		return new ModelAndView("hello.jsp");
	}

}
